package wiBase.baseInterface;

import org.xml.sax.Attributes;

import wiBase.WiException;

public interface OnParseListener {

    /**
     * start Parse XML Document
     */
    public void startDocument();

    /**
     * finish Parse XML Document
     */
    public void finishDocument();

    /**
     * read start tag in XML Document
     */
    public void startElement(String element);

    /**
     * read end tag in XML Document
     */
    public void endElement(String element) throws WiException;

    /**
     * read content of tag in XML Document. trim()
     */
    public void charactor(String content);

    /**
     * parse Object to WiObject
     */
    public void parseAttributes(String elementName, Attributes atts) throws WiException;
}
